package com.aabte.design2.behavioral.chain.v3;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Dialog extends Container {

    private String title;

    private String wikiPageURL;

    public Dialog() {
    }

    public Dialog(String title) {
        this.title = title;
    }

    @Override
    public void showHelp() {
        if (null != wikiPageURL) {
            System.out.println("open wiki page URL = " + wikiPageURL);
        } else {
            super.showHelp();
        }
    }
}
